<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta name="format-detection" content="telephone=no">
	<meta content="telephone=no" name="format-detection">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link rel="stylesheet" media="screen and (max-width:900px)" href="<%=basePath%>resources/css/style_wap.css" type="text/css" /> 
	<link rel="stylesheet" media="screen and (min-width:900px)" href="<%=basePath%>resources/css/style_pc.css" type="text/css" /> 
	<title>体检报告搜索</title>
</head>
<body>
	<form action="<%=basePath%>report/list/search" method="post" id="form1">
	<div class="forget content">
		<p class="fgtil">搜索报告</p>
		<div class="lines">
			<div class="line">
				<p class="ado">手机号码：</p>
				<input class="J_ctrol ctrol" data-type="phone" data-target="phone" type="text" placeholder="手机号码" name="mobile" id="J_mobile">
			</div>
			<div class="line">
				<p class="ado">姓名：</p>
				<input class="J_ctrol ctrol" data-target="text" type="text" placeholder="姓名" name="name" id="J_name">
			</div>
			<div class="line linea"><a href="javascript:;" class="btn" id="J_btn">搜索</a></div>
		</div>
	</div>
	</form>
</body>
<script type="text/javascript" src="<%=basePath%>resources/js/jquery.min.js"></script>
<script type="text/javascript">
$("#J_btn").on("click",function(){
	var mobile = $("#J_mobile").val();
	var name = $("#J_name").val();
	if(mobile == '' && name == ''){
		alert("手机或姓名至少输入一个");
		return false;
	}
	form1.submit();
});
</script>
</html>
